package com.xquant.marketdata.marketdata.controller;

import com.github.pagehelper.PageInfo;
import com.xquant.marketdata.marketdata.service.TirSwapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 *
 *
 * @author ershuai.zhao
 */
@RestController
@RequestMapping("tirSwapController")
public class TirSwapController {

    @Autowired
    private TirSwapService tirSwapService;

    /**
     * 查询 债券信息
     */
    @ResponseBody
    @RequestMapping(value = "/queryTirSwapInfoByPage.action")
    public PageInfo<Map> queryTirSwapInfoByPage(@RequestParam Map<String, Object> param) {
        PageInfo<Map> pageInfo = tirSwapService.queryTirSwapInfoByPage(param);
        return pageInfo;
    }
    /**
     * 查询 债券分红
     */
    @ResponseBody
    @RequestMapping(value = "/queryTirSwapPriceByPage.action")
    public PageInfo<Map> queryTirSwapPriceByPageByPage(@RequestParam Map<String, Object> param) {

        PageInfo<Map> pageInfo = tirSwapService.queryTirSwapPriceByPage(param);

        return pageInfo;
    }




}
